package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.entity.ArticleModuleDO;
import com.winshare.saleAssistant.domain.query.ArticleModuleQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ArticleModuleMapper {

    int saveArticleModule(ArticleModuleDO articleModuleDO);

    int countByArticleModuleName(ArticleModuleDO articleModuleDO);

    int updateArticleModule(ArticleModuleDO articleModuleDO);

    int deleteArticleModule(ArticleModuleDO articleModuleDO);

    int queryArticleModuleCount(ArticleModuleQuery articleModuleQuery);

    List<ArticleModuleDO> findArticleModuleByConditions(ArticleModuleQuery articleModuleQuery);

    ArticleModuleDO getArticleModule(ArticleModuleDO articleModuleDO);
}
